package ex108;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("输入一个正整数: ");
        int n = scanner.nextInt();

        if (n < 0) {
            System.out.println("不正确的输入!");
        } else {
            System.out.printf("%d%s回文整数", n, Palindrome.isPalindrome(n) ? "是" : "不是");
        }
    }
}
